package com.zzyl.nursing.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzyl.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 入住对象
 */
@ApiModel(description = "入住对象")
@EqualsAndHashCode(callSuper = true) //表示是否需要重写equals方法
@Data
public class CheckIn extends BaseEntity {
    //序列化版本ID
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "主键ID")
    private Long id;
    @ApiModelProperty(value = "老人姓名")
    private String elderName;
    @ApiModelProperty(value = "老人ID")
    private Long elderId;
    @ApiModelProperty(value = "身份证号")
    private String idCardNo;
    @ApiModelProperty(value = "入住开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startDate;
    @ApiModelProperty(value = "入住结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endDate;
    @ApiModelProperty(value = "护理等级名称")
    private String nursingLevelName;
    @ApiModelProperty(value = "入住床位")
    private String bedNumber;
    @ApiModelProperty(value = "状态（0：已入住，1：已退住）")
    private Integer status;
    @ApiModelProperty(value = "排序编号")
    private Integer sortOrder;
}